package xserver.codec;

import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

/**
 * 命令 &amp; 结果编解码器工厂类
 * 
 * @author AfritXia
 * @version $Rev: 17 $
 *
 */
public final class CommandResultCodecFactory implements ProtocolCodecFactory {
	@Override
	public ProtocolDecoder getDecoder() {
		return new CommandDecoder();
	}

	@Override
	public ProtocolEncoder getEncoder() {
		return new ResultEncoder();
	}
}
